solution of exact differential equations